﻿using System;

namespace Orid.Management.Statistics.Tools.Decomposition.Data
{
    class DataStoreOnline:DataStore
    {
         string connectString, tableName;

          
         public DataStoreOnline(string dataDBAddress)
        {

            connectString = dataDBAddress;
          
            tableName = "[FutureManagement_Stores].[FutureMa].[DataStore]";
        }

         public override int GetFileSize(Guid? DataStoreID)
         {
              try
              {

                  if (DataStoreID == null)
                  {
                      return -1;
                  }

                  return GetFileSize(DataStoreID, connectString, tableName);

              }
              catch (System.Data.SqlClient.SqlException ex)
              {
                  throw (new Exception(ex.Message));
              }
         }
             
     
    
    }
}
